2D Polyline Utilities Part I